package io.github.talelin.latticy.mq.listener;

import io.github.talelin.latticy.bo.Student;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class StudentListener {

    @RabbitListener(queues = "log.inbound.operation.queue")
    public void handleInventoryOperation(Student student) {
        System.out.println(student);
    }
}
